<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="security"%>
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
	<!-- Sidebar user panel -->
	<div class="user-panel">
		<div class="pull-left image">
			<img
				src="${pageContext.servletContext.contextPath}/loadImage.html?type=THUMB&fileId=${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.avatarId}"
				class="img-circle" />
		</div>
		<div class="pull-left info">
			<p>
				<spring:message code="admin.welcome.user" />
				,
				${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.firstName}
			</p>

			<a href="#"><i class="fa fa-circle text-success"></i> <spring:message code="admin.user.status" /> </a>
		</div>
	</div>
	<!-- search form -->
	<%-- <form action="#" method="get" class="sidebar-form">
		<div class="input-group">
			<input type="text" name="q" class="form-control" placeholder="<spring:message code="admin.menu.search"/>" /> <span class="input-group-btn">
				<button type='submit' name='search' id='search-btn' class="btn btn-flat">
					<i class="fa fa-search"></i>
				</button>
			</span>
		</div>
	</form> --%>
	<!-- /.search form -->
	<!-- sidebar menu: : style can be found in sidebar.less -->
	<ul class="sidebar-menu">
		<li class="active"><a href="goHomePage.html"> <i class="fa fa-dashboard"></i> <span><spring:message code="admin.menu.homepage" /></span>
		</a></li>
		<li class="treeview"><a href="#"> <i class="fa  fa-user"></i> <span><spring:message code="admin.menu.user" /></span><i
				class="fa fa-angle-left pull-right"></i>
		</a>
			<ul class="treeview-menu">
				<li><a href="createNewUser.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.create.new" /></a></li>
				<li><a href="searchUser.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.view.search" /></a></li>
			</ul></li>
		<li class="treeview"><a href="#"> <i class="fa  fa-suitcase"></i> <span><spring:message code="admin.menu.product.group" /></span><i
				class="fa fa-angle-left pull-right"></i>
		</a>
			<ul class="treeview-menu">
				<li><a href="createProductGroup.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.create.new" /></a></li>
				<li><a href="searchProductGroup.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.view.search" /></a></li>
			</ul></li>
		<li class="treeview"><a href="#"> <i class="fa fa-edit"></i> <span><spring:message code="admin.menu.product" /></span><i
				class="fa fa-angle-left pull-right"></i>
		</a>
			<ul class="treeview-menu">
				<li><a href="createProduct.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.create.new" /></a></li>
				<li><a href="searchProduct.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.view.search" /></a></li>
			</ul></li>
		<li class="treeview"><a href="#"> <i class="fa  fa-book"></i> <span><spring:message code="admin.menu.article" /></span><i
				class="fa fa-angle-left pull-right"></i>
		</a>
			<ul class="treeview-menu">
				<li><a href="createArticle.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.create.new" /></a></li>
				<li><a href="searchArticle.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.view.search" /></a></li>
			</ul></li>
		<li class="treeview"><a href="#"> <i class="fa  fa-camera"></i> <span><spring:message code="admin.menu.images" /></span><i
				class="fa fa-angle-left pull-right"></i>
		</a>
			<ul class="treeview-menu">
				<li><a href="createFile.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.create.new" /></a></li>
				<li><a href="searchFile.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.view.search" /></a></li>
			</ul></li>

		<li class="treeview"><a href="#"> <i class="fa fa-users"></i> <span><spring:message code="admin.menu.transaction" /></span> <small
				class="badge pull-right bg-yellow" id="txnNewCount"></small><i class="fa fa-angle-left pull-right"></i>
		</a>
			<ul class="treeview-menu">
				<li><a href="#"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.transaction.search" /></a></li>
				<li><a href="#"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.patron.search" /></a></li>
			</ul>
			</li>

		<li class="treeview"><a href="#"> <i class="fa fa-truck"></i> <span><spring:message code="admin.menu.payment" /></span> <i
				class="fa fa-angle-left pull-right"></i>
		</a>
			<ul class="treeview-menu">
				<li><a href="createPaymentMethod.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.create.new" /></a></li>
				<li><a href="searchPaymentMethod.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.view.search" /></a></li>
			</ul></li>

		<li class="treeview"><a href="#"> <i class="fa fa-wrench"></i> <span><spring:message code="admin.menu.application.configuration" /></span> <i
				class="fa fa-angle-left pull-right"></i>
		</a>
			<ul class="treeview-menu">
				<li><a href="clearCache.html"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.clear.cache" /></a></li>
				<%-- <li><a href="#"><i class="fa fa-angle-double-right"></i> <spring:message code="admin.menu.view.search" /></a></li> --%>
			</ul></li>


		<li><a href="getMailBox.html?mode=INBOX"> <i class="fa fa-envelope"></i> <span><spring:message code="admin.menu.mail.box" /></span> <small class="badge pull-right bg-yellow"></small>
		</a></li>
	</ul>
</section>
<!-- /.sidebar -->